<?php
return array(
	'getGoodsList'    => array('file' => 'goods.php','class'=> 'APIGoods',),
	'getArtList'      => array('query' => array('name' => 'article','where' => 'visiblity = 1 and top = 1','order' => 'sort ASC,id DESC','fields'=> 'title,id,style,color','limit' => '10')),
	'getRegimentList' => array('query' => array('name' => 'regiment','where' => 'is_close = 0 and NOW() between start_time and end_time','fields' => 'id,title,regiment_price,img','order' => 'id desc','limit' => '10')),
	'getPromotionList'=> array('query' => array('name' => 'promotion as p','join' => 'left join goods as go on go.id = p.condition','fields'=>'p.end_time,go.list_img as list_img,p.name as name,p.award_value as award_value,go.id as goods_id,p.id as p_id,end_time','where'=>'p.type = 1 and p.is_close = 0 and go.is_del = 0 and NOW() between start_time and end_time AND go.id is not null','order'=>'p_id desc','limit'=>'10')),
	'getCommendNew'   => array('query' => array('name' => 'commend_goods as co','join' => 'left join goods as go on co.goods_id = go.id','where' => 'co.commend_id = 1 and go.is_del = 0 AND go.id is not null','fields' => 'go.list_img,go.sell_price,go.name,go.id','limit'=>'10','order'=>'sort asc,id desc')),
	'getCommendPrice' => array('query' => array('name' => 'commend_goods as co','join' => 'left join goods as go on co.goods_id = go.id','where' => 'co.commend_id = 2 and go.is_del = 0 AND go.id is not null','fields' => 'go.list_img,go.sell_price,go.name,go.id','limit'=>'10','order'=>'sort asc,id desc')),
	'getCommendHot'   => array('query' => array('name' => 'commend_goods as co','join' => 'left join goods as go on co.goods_id = go.id','where' => 'co.commend_id = 3 and go.is_del = 0 AND go.id is not null','fields' => 'go.list_img,go.sell_price,go.name,go.id','limit'=>'10','order'=>'sort asc,id desc')),
	'getCommendRecom' => array('query' => array('name' => 'commend_goods as co','join' => 'left join goods as go on co.goods_id = go.id','where' => 'co.commend_id = 4 and go.is_del = 0 AND go.id is not null','fields' => 'go.list_img,go.sell_price,go.name,go.id','limit'=>'10','order'=>'sort asc,id desc')),
	'getOrderDistributed' => array('query' => array('name' => 'order','where' => 'distribution_status = 1 and if_del = 0','limit' => '10','order' => 'id desc')),
);